// TeacherInformationset.cpp : implementation file
//

#include "stdafx.h"
#include "SelectLesson.h"
#include "TeacherInformationset.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
// CTeacherInformationset

IMPLEMENT_DYNAMIC(CTeacherInformationset, CRecordset)

CTeacherInformationset::CTeacherInformationset(CDatabase* pdb)
	: CRecordset(pdb)
{
	//{{AFX_FIELD_INIT(CTeacherInformationset)
	m_TeacherNumber = 0;
	m_TeacherName = _T("");
	m_Sex = FALSE;
	m_nFields = 4;
	//}}AFX_FIELD_INIT
	m_nDefaultType = dynaset;
}


CString CTeacherInformationset::GetDefaultConnect()
{
	return _T("ODBC;DSN=");
}

CString CTeacherInformationset::GetDefaultSQL()
{
	return _T("[TeacherInformation]");
}

void CTeacherInformationset::DoFieldExchange(CFieldExchange* pFX)
{
	//{{AFX_FIELD_MAP(CTeacherInformationset)
	pFX->SetFieldType(CFieldExchange::outputColumn);
	RFX_Int(pFX, _T("[TeacherNumber]"), m_TeacherNumber);
	RFX_Text(pFX, _T("[TeacherName]"), m_TeacherName);
	RFX_Bool(pFX, _T("[Sex]"), m_Sex);
	RFX_Date(pFX, _T("[Birthday]"), m_Birthday);
	//}}AFX_FIELD_MAP
}

/////////////////////////////////////////////////////////////////////////////
// CTeacherInformationset diagnostics

#ifdef _DEBUG
void CTeacherInformationset::AssertValid() const
{
	CRecordset::AssertValid();
}

void CTeacherInformationset::Dump(CDumpContext& dc) const
{
	CRecordset::Dump(dc);
}
#endif //_DEBUG
